<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonColorToolButton类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_color_tool_button.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-slots">Public 槽</a> &#124;
<a href="#signals">信号</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="class_s_a_ribbon_color_tool_button-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonColorToolButton类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>Refer to the color setting button in the office, which can display the color below the icon(参考office的颜色设置按钮，可以显示颜色在图标下方)  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_color_tool_button_8h_source.html">SARibbonColorToolButton.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonColorToolButton 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_color_tool_button.png" usemap="#SARibbonColorToolButton_map" alt=""/>
  <map id="SARibbonColorToolButton_map" name="SARibbonColorToolButton_map">
<area href="class_s_a_ribbon_tool_button.html" title="Ribbon界面适用的toolButton" alt="SARibbonToolButton" shape="rect" coords="0,56,158,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_color_tool_button_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aa8fd5c4fc3f955769e1faf7db909cded" id="r_aa8fd5c4fc3f955769e1faf7db909cded"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa8fd5c4fc3f955769e1faf7db909cded">ColorStyle</a> { <a class="el" href="#aa8fd5c4fc3f955769e1faf7db909cdeda83393409797ab82495b63082f57202e9">ColorUnderIcon</a>
, <a class="el" href="#aa8fd5c4fc3f955769e1faf7db909cdedaaf18f6c9276c70e07aad690fb1fad5c5">ColorFillToIcon</a>
 }</td></tr>
<tr class="memdesc:aa8fd5c4fc3f955769e1faf7db909cded"><td class="mdescLeft">&#160;</td><td class="mdescRight">颜色样式  <a href="#aa8fd5c4fc3f955769e1faf7db909cded">更多...</a><br /></td></tr>
<tr class="separator:aa8fd5c4fc3f955769e1faf7db909cded"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_class_s_a_ribbon_tool_button"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_types_class_s_a_ribbon_tool_button')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a></td></tr>
<tr class="memitem:a53fdbafe05f80a4048c17443fb1d99be inherit pub_types_class_s_a_ribbon_tool_button" id="r_a53fdbafe05f80a4048c17443fb1d99be"><td class="memItemLeft" align="right" valign="top"><a id="a53fdbafe05f80a4048c17443fb1d99be" name="a53fdbafe05f80a4048c17443fb1d99be"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a53fdbafe05f80a4048c17443fb1d99be">RibbonButtonType</a> { <b>LargeButton</b>
, <b>SmallButton</b>
 }</td></tr>
<tr class="memdesc:a53fdbafe05f80a4048c17443fb1d99be"><td class="mdescLeft">&#160;</td><td class="mdescRight">按钮样式 <br /></td></tr>
<tr class="separator:a53fdbafe05f80a4048c17443fb1d99be inherit pub_types_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-slots" name="pub-slots"></a>
Public 槽</h2></td></tr>
<tr class="memitem:a2de5c7f52ba6af93c0daad9e286d434d" id="r_a2de5c7f52ba6af93c0daad9e286d434d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2de5c7f52ba6af93c0daad9e286d434d">setColor</a> (const QColor &amp;c)</td></tr>
<tr class="memdesc:a2de5c7f52ba6af93c0daad9e286d434d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置按钮的颜色  <br /></td></tr>
<tr class="separator:a2de5c7f52ba6af93c0daad9e286d434d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="signals" name="signals"></a>
信号</h2></td></tr>
<tr class="memitem:a557723d4b37592e0de7df6005f63b3c7" id="r_a557723d4b37592e0de7df6005f63b3c7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a557723d4b37592e0de7df6005f63b3c7">colorClicked</a> (const QColor &amp;<a class="el" href="#aeb6dbb9fb3a1898eecb688b78ad6befe">color</a>, bool checked=false)</td></tr>
<tr class="memdesc:a557723d4b37592e0de7df6005f63b3c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">颜色被点击的响应  <br /></td></tr>
<tr class="separator:a557723d4b37592e0de7df6005f63b3c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a723e0c85a33b35a5762c3dc4da62b914" id="r_a723e0c85a33b35a5762c3dc4da62b914"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a723e0c85a33b35a5762c3dc4da62b914">colorChanged</a> (const QColor &amp;<a class="el" href="#aeb6dbb9fb3a1898eecb688b78ad6befe">color</a>)</td></tr>
<tr class="memdesc:a723e0c85a33b35a5762c3dc4da62b914"><td class="mdescLeft">&#160;</td><td class="mdescRight">颜色改变信号  <br /></td></tr>
<tr class="separator:a723e0c85a33b35a5762c3dc4da62b914"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:adc153801758a34279663c7bfdec2f110" id="r_adc153801758a34279663c7bfdec2f110"><td class="memItemLeft" align="right" valign="top"><a id="adc153801758a34279663c7bfdec2f110" name="adc153801758a34279663c7bfdec2f110"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonColorToolButton</b> (QWidget *parent=nullptr)</td></tr>
<tr class="separator:adc153801758a34279663c7bfdec2f110"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af95998dbb6f32c452e73e97ab835f61f" id="r_af95998dbb6f32c452e73e97ab835f61f"><td class="memItemLeft" align="right" valign="top"><a id="af95998dbb6f32c452e73e97ab835f61f" name="af95998dbb6f32c452e73e97ab835f61f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonColorToolButton</b> (QAction *defaultAction, QWidget *parent=nullptr)</td></tr>
<tr class="separator:af95998dbb6f32c452e73e97ab835f61f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb6dbb9fb3a1898eecb688b78ad6befe" id="r_aeb6dbb9fb3a1898eecb688b78ad6befe"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aeb6dbb9fb3a1898eecb688b78ad6befe">color</a> () const</td></tr>
<tr class="memdesc:aeb6dbb9fb3a1898eecb688b78ad6befe"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取按钮维护的颜色  <br /></td></tr>
<tr class="separator:aeb6dbb9fb3a1898eecb688b78ad6befe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f05afd3236e78ab59f8982a4b922837" id="r_a8f05afd3236e78ab59f8982a4b922837"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8f05afd3236e78ab59f8982a4b922837">setColorStyle</a> (<a class="el" href="#aa8fd5c4fc3f955769e1faf7db909cded">ColorStyle</a> s)</td></tr>
<tr class="memdesc:a8f05afd3236e78ab59f8982a4b922837"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置颜色显示的样式  <br /></td></tr>
<tr class="separator:a8f05afd3236e78ab59f8982a4b922837"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebd46c76341ac79d5c4d8412dfc67bd2" id="r_aebd46c76341ac79d5c4d8412dfc67bd2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#aa8fd5c4fc3f955769e1faf7db909cded">ColorStyle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aebd46c76341ac79d5c4d8412dfc67bd2">colorStyle</a> () const</td></tr>
<tr class="memdesc:aebd46c76341ac79d5c4d8412dfc67bd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">颜色显示的样式  <br /></td></tr>
<tr class="separator:aebd46c76341ac79d5c4d8412dfc67bd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8ffe643542666c136c845d2d76cf7b0" id="r_ae8ffe643542666c136c845d2d76cf7b0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_color_menu.html">SAColorMenu</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae8ffe643542666c136c845d2d76cf7b0">setupStandardColorMenu</a> ()</td></tr>
<tr class="memdesc:ae8ffe643542666c136c845d2d76cf7b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">建立标准的颜色菜单  <br /></td></tr>
<tr class="separator:ae8ffe643542666c136c845d2d76cf7b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_s_a_ribbon_tool_button"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_class_s_a_ribbon_tool_button')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a></td></tr>
<tr class="memitem:a6292a56bab3a5e0e6e950ff0a2753c13 inherit pub_methods_class_s_a_ribbon_tool_button" id="r_a6292a56bab3a5e0e6e950ff0a2753c13"><td class="memItemLeft" align="right" valign="top">
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonToolButton</b> (QWidget *parent=nullptr)</td></tr>
<tr class="separator:a6292a56bab3a5e0e6e950ff0a2753c13 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ec812bc5f82d3a2af4bb896532231e2 inherit pub_methods_class_s_a_ribbon_tool_button" id="r_a9ec812bc5f82d3a2af4bb896532231e2"><td class="memItemLeft" align="right" valign="top">
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonToolButton</b> (QAction *defaultAction, QWidget *parent=nullptr)</td></tr>
<tr class="separator:a9ec812bc5f82d3a2af4bb896532231e2 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90ff1ccf33a76e0f023e3774c6bf79b7 inherit pub_methods_class_s_a_ribbon_tool_button" id="r_a90ff1ccf33a76e0f023e3774c6bf79b7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_tool_button.html#a53fdbafe05f80a4048c17443fb1d99be">RibbonButtonType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a90ff1ccf33a76e0f023e3774c6bf79b7">buttonType</a> () const</td></tr>
<tr class="memdesc:a90ff1ccf33a76e0f023e3774c6bf79b7 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">按钮样式  <br /></td></tr>
<tr class="separator:a90ff1ccf33a76e0f023e3774c6bf79b7 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cf7919e58be615d465574709406dbe6 inherit pub_methods_class_s_a_ribbon_tool_button" id="r_a6cf7919e58be615d465574709406dbe6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a6cf7919e58be615d465574709406dbe6">setButtonType</a> (const <a class="el" href="class_s_a_ribbon_tool_button.html#a53fdbafe05f80a4048c17443fb1d99be">RibbonButtonType</a> &amp;<a class="el" href="class_s_a_ribbon_tool_button.html#a90ff1ccf33a76e0f023e3774c6bf79b7">buttonType</a>)</td></tr>
<tr class="memdesc:a6cf7919e58be615d465574709406dbe6 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置按钮样式  <br /></td></tr>
<tr class="separator:a6cf7919e58be615d465574709406dbe6 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5463b99bcbcaaddf86c73b3d8ae39f23 inherit pub_methods_class_s_a_ribbon_tool_button" id="r_a5463b99bcbcaaddf86c73b3d8ae39f23"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a5463b99bcbcaaddf86c73b3d8ae39f23">isSmallRibbonButton</a> () const</td></tr>
<tr class="memdesc:a5463b99bcbcaaddf86c73b3d8ae39f23 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否是小按钮  <br /></td></tr>
<tr class="separator:a5463b99bcbcaaddf86c73b3d8ae39f23 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dd31b24c8000e15c0dbee3c1b5ed9f1 inherit pub_methods_class_s_a_ribbon_tool_button" id="r_a4dd31b24c8000e15c0dbee3c1b5ed9f1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a4dd31b24c8000e15c0dbee3c1b5ed9f1">isLargeRibbonButton</a> () const</td></tr>
<tr class="memdesc:a4dd31b24c8000e15c0dbee3c1b5ed9f1 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否是大按钮  <br /></td></tr>
<tr class="separator:a4dd31b24c8000e15c0dbee3c1b5ed9f1 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89b4879c291fba308af60c39a0b11f51 inherit pub_methods_class_s_a_ribbon_tool_button" id="r_a89b4879c291fba308af60c39a0b11f51"><td class="memItemLeft" align="right" valign="top">
virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><b>minimumSizeHint</b> () const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a89b4879c291fba308af60c39a0b11f51 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69f1776079bf549ef63823d93e7dc06f inherit pub_methods_class_s_a_ribbon_tool_button" id="r_a69f1776079bf549ef63823d93e7dc06f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a69f1776079bf549ef63823d93e7dc06f">spacing</a> () const</td></tr>
<tr class="memdesc:a69f1776079bf549ef63823d93e7dc06f inherit pub_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">间距是几个重要矩形的间隔  <br /></td></tr>
<tr class="separator:a69f1776079bf549ef63823d93e7dc06f inherit pub_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53152bc3dcc27752ca6827ab1583d035 inherit pub_methods_class_s_a_ribbon_tool_button" id="r_a53152bc3dcc27752ca6827ab1583d035"><td class="memItemLeft" align="right" valign="top">
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateRect</b> ()</td></tr>
<tr class="separator:a53152bc3dcc27752ca6827ab1583d035 inherit pub_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44608a06c2e9cbdba72ea1c14a55a78d inherit pub_methods_class_s_a_ribbon_tool_button" id="r_a44608a06c2e9cbdba72ea1c14a55a78d"><td class="memItemLeft" align="right" valign="top">virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a44608a06c2e9cbdba72ea1c14a55a78d">sizeHint</a> () const Q_DECL_OVERRIDE</td></tr>
<tr class="memdesc:a44608a06c2e9cbdba72ea1c14a55a78d inherit pub_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">toolbutton的尺寸确定是先定下字体的尺寸，再定下icon的尺寸，自底向上，保证字体能显示两行  <br /></td></tr>
<tr class="separator:a44608a06c2e9cbdba72ea1c14a55a78d inherit pub_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:aae2d8cbc6200b6745f4e7b995e93945f" id="r_aae2d8cbc6200b6745f4e7b995e93945f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aae2d8cbc6200b6745f4e7b995e93945f">paintIcon</a> (QPainter &amp;p, const QStyleOptionToolButton &amp;opt, const QRect &amp;iconDrawRect)</td></tr>
<tr class="memdesc:aae2d8cbc6200b6745f4e7b995e93945f"><td class="mdescLeft">&#160;</td><td class="mdescRight">重写paintIcon函数，把颜色加到icon下面  <br /></td></tr>
<tr class="separator:aae2d8cbc6200b6745f4e7b995e93945f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_s_a_ribbon_tool_button"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pro_methods_class_s_a_ribbon_tool_button')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a></td></tr>
<tr class="memitem:aa2a2bfa662e01bd80bfe23cc9205a312 inherit pro_methods_class_s_a_ribbon_tool_button" id="r_aa2a2bfa662e01bd80bfe23cc9205a312"><td class="memItemLeft" align="right" valign="top">
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>paintEvent</b> (QPaintEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:aa2a2bfa662e01bd80bfe23cc9205a312 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa70be1fe676e7a9053a5f16cd2101965 inherit pro_methods_class_s_a_ribbon_tool_button" id="r_aa70be1fe676e7a9053a5f16cd2101965"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#aa70be1fe676e7a9053a5f16cd2101965">resizeEvent</a> (QResizeEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="memdesc:aa70be1fe676e7a9053a5f16cd2101965 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">在resizeevent计算绘图所需的尺寸，避免在绘图过程中实时绘制提高效率  <br /></td></tr>
<tr class="separator:aa70be1fe676e7a9053a5f16cd2101965 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64a0ddccc882a441a9743a9d7ade5fcb inherit pro_methods_class_s_a_ribbon_tool_button" id="r_a64a0ddccc882a441a9743a9d7ade5fcb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a64a0ddccc882a441a9743a9d7ade5fcb">mouseMoveEvent</a> (QMouseEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="memdesc:a64a0ddccc882a441a9743a9d7ade5fcb inherit pro_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标移动事件  <br /></td></tr>
<tr class="separator:a64a0ddccc882a441a9743a9d7ade5fcb inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbe9f480e94f844b37ac26ad0e39cf09 inherit pro_methods_class_s_a_ribbon_tool_button" id="r_adbe9f480e94f844b37ac26ad0e39cf09"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#adbe9f480e94f844b37ac26ad0e39cf09">mousePressEvent</a> (QMouseEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="memdesc:adbe9f480e94f844b37ac26ad0e39cf09 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_s_a_ribbon_tool_button.html#adbe9f480e94f844b37ac26ad0e39cf09" title="SARibbonToolButton::mousePressEvent">SARibbonToolButton::mousePressEvent</a>  <br /></td></tr>
<tr class="separator:adbe9f480e94f844b37ac26ad0e39cf09 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab52db9405689a75e996457e48232cc01 inherit pro_methods_class_s_a_ribbon_tool_button" id="r_ab52db9405689a75e996457e48232cc01"><td class="memItemLeft" align="right" valign="top">
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>mouseReleaseEvent</b> (QMouseEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:ab52db9405689a75e996457e48232cc01 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a922cb76a2e22a994d796a284076ae97e inherit pro_methods_class_s_a_ribbon_tool_button" id="r_a922cb76a2e22a994d796a284076ae97e"><td class="memItemLeft" align="right" valign="top">
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>focusOutEvent</b> (QFocusEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a922cb76a2e22a994d796a284076ae97e inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a164bd3d3077d54db0eaeb451ff763341 inherit pro_methods_class_s_a_ribbon_tool_button" id="r_a164bd3d3077d54db0eaeb451ff763341"><td class="memItemLeft" align="right" valign="top">
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>leaveEvent</b> (QEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a164bd3d3077d54db0eaeb451ff763341 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54ad65b2bd2a0d6a2bfad89736f069d7 inherit pro_methods_class_s_a_ribbon_tool_button" id="r_a54ad65b2bd2a0d6a2bfad89736f069d7"><td class="memItemLeft" align="right" valign="top">
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>hitButton</b> (const QPoint &amp;pos) const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a54ad65b2bd2a0d6a2bfad89736f069d7 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6abada9b11675887d40396a87f4b3db7 inherit pro_methods_class_s_a_ribbon_tool_button" id="r_a6abada9b11675887d40396a87f4b3db7"><td class="memItemLeft" align="right" valign="top">
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>event</b> (QEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a6abada9b11675887d40396a87f4b3db7 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af05d7f437e81d9c2529b257c970d0ae5 inherit pro_methods_class_s_a_ribbon_tool_button" id="r_af05d7f437e81d9c2529b257c970d0ae5"><td class="memItemLeft" align="right" valign="top">
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>changeEvent</b> (QEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:af05d7f437e81d9c2529b257c970d0ae5 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dc42d4cb5ebc3b6b894d2dbee85c294 inherit pro_methods_class_s_a_ribbon_tool_button" id="r_a5dc42d4cb5ebc3b6b894d2dbee85c294"><td class="memItemLeft" align="right" valign="top">
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>actionEvent</b> (QActionEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a5dc42d4cb5ebc3b6b894d2dbee85c294 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad466bc82d32ecb12eb696feba8a8a08d inherit pro_methods_class_s_a_ribbon_tool_button" id="r_ad466bc82d32ecb12eb696feba8a8a08d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#ad466bc82d32ecb12eb696feba8a8a08d">paintButton</a> (QPainter &amp;p, const QStyleOptionToolButton &amp;opt)</td></tr>
<tr class="memdesc:ad466bc82d32ecb12eb696feba8a8a08d inherit pro_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">绘制按钮  <br /></td></tr>
<tr class="separator:ad466bc82d32ecb12eb696feba8a8a08d inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea6b7a56df79a7c3f988c4866e2d4675 inherit pro_methods_class_s_a_ribbon_tool_button" id="r_aea6b7a56df79a7c3f988c4866e2d4675"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#aea6b7a56df79a7c3f988c4866e2d4675">paintText</a> (QPainter &amp;p, const QStyleOptionToolButton &amp;opt, const QRect &amp;textDrawRect)</td></tr>
<tr class="memdesc:aea6b7a56df79a7c3f988c4866e2d4675 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">绘制文本  <br /></td></tr>
<tr class="separator:aea6b7a56df79a7c3f988c4866e2d4675 inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af612a0e0ed5e5c6d493917f7b3c718ea inherit pro_methods_class_s_a_ribbon_tool_button" id="r_af612a0e0ed5e5c6d493917f7b3c718ea"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#af612a0e0ed5e5c6d493917f7b3c718ea">paintIndicator</a> (QPainter &amp;p, const QStyleOptionToolButton &amp;opt, const QRect &amp;indicatorDrawRect)</td></tr>
<tr class="memdesc:af612a0e0ed5e5c6d493917f7b3c718ea inherit pro_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">绘制Indicator  <br /></td></tr>
<tr class="separator:af612a0e0ed5e5c6d493917f7b3c718ea inherit pro_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_s_a_ribbon_tool_button"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_static_methods_class_s_a_ribbon_tool_button')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a></td></tr>
<tr class="memitem:ad7a93f39b9bf32d0218fb3269af8605a inherit pub_static_methods_class_s_a_ribbon_tool_button" id="r_ad7a93f39b9bf32d0218fb3269af8605a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#ad7a93f39b9bf32d0218fb3269af8605a">setEnableWordWrap</a> (bool on)</td></tr>
<tr class="memdesc:ad7a93f39b9bf32d0218fb3269af8605a inherit pub_static_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置在lite模式下是否允许文字换行，如果允许，则图标相对比较小，默认不允许  <br /></td></tr>
<tr class="separator:ad7a93f39b9bf32d0218fb3269af8605a inherit pub_static_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b1ca6c2d08bd4a7704de764a7a7ce20 inherit pub_static_methods_class_s_a_ribbon_tool_button" id="r_a1b1ca6c2d08bd4a7704de764a7a7ce20"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a1b1ca6c2d08bd4a7704de764a7a7ce20">isEnableWordWrap</a> ()</td></tr>
<tr class="memdesc:a1b1ca6c2d08bd4a7704de764a7a7ce20 inherit pub_static_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">在lite模式下是否允许文字换行  <br /></td></tr>
<tr class="separator:a1b1ca6c2d08bd4a7704de764a7a7ce20 inherit pub_static_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a349f8ffba2150c532a36ab55375a4eb0 inherit pub_static_methods_class_s_a_ribbon_tool_button" id="r_a349f8ffba2150c532a36ab55375a4eb0"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a349f8ffba2150c532a36ab55375a4eb0">setTextEllipsisAspectFactor</a> (qreal fac=1.4)</td></tr>
<tr class="memdesc:a349f8ffba2150c532a36ab55375a4eb0 inherit pub_static_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">文本宽度估算时的宽度比高度系数  <br /></td></tr>
<tr class="separator:a349f8ffba2150c532a36ab55375a4eb0 inherit pub_static_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ae439aa77040384d4c1325789a39c4f inherit pub_static_methods_class_s_a_ribbon_tool_button" id="r_a7ae439aa77040384d4c1325789a39c4f"><td class="memItemLeft" align="right" valign="top">static qreal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_tool_button.html#a7ae439aa77040384d4c1325789a39c4f">textEllipsisAspectFactor</a> ()</td></tr>
<tr class="memdesc:a7ae439aa77040384d4c1325789a39c4f inherit pub_static_methods_class_s_a_ribbon_tool_button"><td class="mdescLeft">&#160;</td><td class="mdescRight">文本宽度估算时的宽度比高度系数  <br /></td></tr>
<tr class="separator:a7ae439aa77040384d4c1325789a39c4f inherit pub_static_methods_class_s_a_ribbon_tool_button"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Refer to the color setting button in the office, which can display the color below the icon(参考office的颜色设置按钮，可以显示颜色在图标下方) </p>
</div><h2 class="groupheader">成员枚举类型说明</h2>
<a id="aa8fd5c4fc3f955769e1faf7db909cded" name="aa8fd5c4fc3f955769e1faf7db909cded"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8fd5c4fc3f955769e1faf7db909cded">&#9670;&#160;</a></span>ColorStyle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#aa8fd5c4fc3f955769e1faf7db909cded">SARibbonColorToolButton::ColorStyle</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>颜色样式 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="aa8fd5c4fc3f955769e1faf7db909cdeda83393409797ab82495b63082f57202e9" name="aa8fd5c4fc3f955769e1faf7db909cdeda83393409797ab82495b63082f57202e9"></a>ColorUnderIcon&#160;</td><td class="fielddoc"><p>颜色在icon下方，这个要求必须设置icon </p>
</td></tr>
<tr><td class="fieldname"><a id="aa8fd5c4fc3f955769e1faf7db909cdedaaf18f6c9276c70e07aad690fb1fad5c5" name="aa8fd5c4fc3f955769e1faf7db909cdedaaf18f6c9276c70e07aad690fb1fad5c5"></a>ColorFillToIcon&#160;</td><td class="fielddoc"><p>颜色作为icon，这个模式下在setColor会自动生成一个颜色icon替换掉原来的icon，因此setIcon函数没有作用 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aeb6dbb9fb3a1898eecb688b78ad6befe" name="aeb6dbb9fb3a1898eecb688b78ad6befe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb6dbb9fb3a1898eecb688b78ad6befe">&#9670;&#160;</a></span>color()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QColor SARibbonColorToolButton::color </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取按钮维护的颜色 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a723e0c85a33b35a5762c3dc4da62b914" name="a723e0c85a33b35a5762c3dc4da62b914"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a723e0c85a33b35a5762c3dc4da62b914">&#9670;&#160;</a></span>colorChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonColorToolButton::colorChanged </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>color</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>颜色改变信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">color</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a557723d4b37592e0de7df6005f63b3c7" name="a557723d4b37592e0de7df6005f63b3c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a557723d4b37592e0de7df6005f63b3c7">&#9670;&#160;</a></span>colorClicked</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonColorToolButton::colorClicked </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>color</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>checked</em><span class="paramdefsep"> = </span><span class="paramdefval">false</span></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>颜色被点击的响应 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">color</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aebd46c76341ac79d5c4d8412dfc67bd2" name="aebd46c76341ac79d5c4d8412dfc67bd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebd46c76341ac79d5c4d8412dfc67bd2">&#9670;&#160;</a></span>colorStyle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="#aa8fd5c4fc3f955769e1faf7db909cded">SARibbonColorToolButton::ColorStyle</a> SARibbonColorToolButton::colorStyle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>颜色显示的样式 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aae2d8cbc6200b6745f4e7b995e93945f" name="aae2d8cbc6200b6745f4e7b995e93945f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae2d8cbc6200b6745f4e7b995e93945f">&#9670;&#160;</a></span>paintIcon()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonColorToolButton::paintIcon </td>
          <td>(</td>
          <td class="paramtype">QPainter &amp;</td>          <td class="paramname"><span class="paramname"><em>p</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QStyleOptionToolButton &amp;</td>          <td class="paramname"><span class="paramname"><em>opt</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRect &amp;</td>          <td class="paramname"><span class="paramname"><em>iconDrawRect</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重写paintIcon函数，把颜色加到icon下面 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td></td></tr>
    <tr><td class="paramname">opt</td><td></td></tr>
    <tr><td class="paramname">iconDrawRect</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>重载 <a class="el" href="class_s_a_ribbon_tool_button.html#a9934d557c4daaa615c4638cd38646bd9">SARibbonToolButton</a> .</p>

</div>
</div>
<a id="a2de5c7f52ba6af93c0daad9e286d434d" name="a2de5c7f52ba6af93c0daad9e286d434d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2de5c7f52ba6af93c0daad9e286d434d">&#9670;&#160;</a></span>setColor</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonColorToolButton::setColor </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>c</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置按钮的颜色 </p>
<p>此时会生成一个新的icon </p><dl class="section note"><dt>注解</dt><dd>会发射</dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="#a723e0c85a33b35a5762c3dc4da62b914" title="颜色改变信号">colorChanged</a> 信号 </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8f05afd3236e78ab59f8982a4b922837" name="a8f05afd3236e78ab59f8982a4b922837"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f05afd3236e78ab59f8982a4b922837">&#9670;&#160;</a></span>setColorStyle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonColorToolButton::setColorStyle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="#aa8fd5c4fc3f955769e1faf7db909cded">SARibbonColorToolButton::ColorStyle</a></td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置颜色显示的样式 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae8ffe643542666c136c845d2d76cf7b0" name="ae8ffe643542666c136c845d2d76cf7b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8ffe643542666c136c845d2d76cf7b0">&#9670;&#160;</a></span>setupStandardColorMenu()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_color_menu.html">SAColorMenu</a> * SARibbonColorToolButton::setupStandardColorMenu </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>建立标准的颜色菜单 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_color_tool_button_8h_source.html">SARibbonColorToolButton.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonColorToolButton.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_color_tool_button.html">SARibbonColorToolButton</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
